#include "Flying-Racoon-Potato_PCH.h"
#include "World.h"
#include "../Solaire/MemoryManager.h"
#include "Entity.h"

void World::Init()
{
	m_entityPool = new MemoryPool;
	m_entityPool->initializeMemoryManager();
	CreateEntity();
	m_entities[0]->Init();
	int blah = m_entities[0]->GetPosition().x;
	printf("%i", blah);
}

void World::CreateEntity()
{
	Entity* newEntity( m_entityPool->allocate<Entity>() );
	m_entities.push_back(newEntity);
}